package org.jeecg.modules.xl.as.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * ${DESCRIPTION}
 * @author deco
 * @create 2025-03-15
*/
/**
 * 退货退款售后单明细表
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "xl_customer_as_detail")
@ApiModel(value="售后单明细", description="售后单明细")
public class XlCustomerAsDetail implements Serializable {
    /**
     * 明细ID
     */
    @TableId(value = "as_item_id", type = IdType.ASSIGN_ID)
    private Long asItemId;

    /**
     * 售后单ID
     */
    @TableField(value = "as_id")
    private Long asId;

    /**
     * 售后单编码
     */
    @TableField(value = "as_code")
    @ApiModelProperty(value = "售后单编码")
    private String asCode;

    /**
     * 售后单编码
     */
    @TableField(value = "order_code")
    @ApiModelProperty(value = "售后单编码")
    private String orderCode;

    @TableField(value = "order_detail_id")
    private Long orderDetailId;

    /**
     * 商品UPC编码
     */
    @TableField(value = "upc_code")
    @ApiModelProperty(value = "商品UPC编码")
    private String upcCode;

    /**
     * 商品名称
     */
    @TableField(value = "product_name")
    @ApiModelProperty(value = "商品名称")
    private String productName;

    /**
     * 商品单价
     */
    @TableField(value = "product_price")
    @ApiModelProperty(value = "商品单价")
    private BigDecimal productPrice;

    /**
     * 售后数量
     */
    @TableField(value = "as_quantity")
    @ApiModelProperty(value = "售后数量")
    private Integer asQuantity;

    /**
     * 售后金额
     */
    @TableField(value = "as_amount")
    @ApiModelProperty(value = "售后金额")
    private BigDecimal asAmount;

    /**
     * 商品图片URL
     */
    @TableField(value = "product_main_pic")
    @ApiModelProperty(value = "商品图片URL")
    private String productMainPic;

    /**
     * 租户ID
     */
    @TableField(value = "tenant_id")
    private Long tenantId;

    /**
     * 是否删除标志
     */
    @TableField(value = "is_deleted")
    private String isDeleted;

    /**
     * 创建人
     */
    @TableField(value = "create_by")
    private String createBy;

    /**
     * 创建时间
     */
    @TableField(value = "create_time",fill = FieldFill.INSERT)
    private Date createTime;

    /**
     * 更新人
     */
    @TableField(value = "update_by")
    private String updateBy;

    /**
     * 更新时间
     */
    @TableField(value = "update_time",fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    private static final long serialVersionUID = 1L;
}